package com.yun.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.yun.entity.Files;
import com.yun.entity.User;

@Repository

public interface UserService {
	public int addUser(User user);
	/**
	 * 通过手机号和密码查询用户
	 * @param phone
	 * @param password
	 * @return
	 */
	public User login(String phone, String userPwd);	
	public User findUserByPhone(@Param("phone")String phone);
	/**
	 * 通过用户ID查找他的文件
	 * @param userId
	 * @return
	 */
	List<Files> findFilesByUserId(int userId);
}
